﻿<!DOCTYPE html>
<html lang="en">
<head>
	<title>ST8803-E 网数网关(RTU)通讯设备</title>
	<script src="js/jquery.min.js"></script>
    <script src="js/jquery_ui.min.js"></script>
    <script language="javascript" src="js/rtuset.js" type="text/javascript"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="css/stylepc.css">
    <link rel="stylesheet" href="css/index.css">
    
</head>

<body>
	<div class="container">
    	<div class="top">
    	<div class="top_l"><span><img src="images/logo.png"></span><p>数据网关（RTU）型号：ST-8803-E</p></div>
        <div class="top_r"><a href="#" onclick="exit();">退出</a><iframe id="iframe" src="refresh.html" frameborder="0" style="width:0px;height:0px;"></iframe><input id="txt_refresh_name" type="hidden" value="1001" /></div>
        </div>
    </div>
	<div class="container" id='container'>
		<div class="menu">
            <h3 onclick="bullet('1001')" class="tu1">系统状态</h3>
			<ul class="ulmenu1">
				<li><a class="selected"  onclick="bullet('1001')">设备基本信息</a></li>
				<li><a href="#" onclick="bullet('1002')">系统资源</a></li>
				<li><a href="#" onclick="bullet('1004')">已连接无线节点</a></li>
                <li><a href="#" onclick="bullet('1003')">网络信息</a></li>
			</ul>
            <h3 onclick="bullet('1005')" class="tu2">系统参数配置</h3>
			<ul class="ulmenu2">
				<li><a href="#" class="selected" onclick="bullet('1005')">基本设置</a></li>
				<li><a href="#" onclick="bullet('1006')">日志</a></li>
				<li><a href="#" onclick="bullet('1007')">管理权限</a></li>
                <li><a href="#" onclick="bullet('1023')">升级备份</a></li>
			</ul>

            <h3 onclick="bullet('1008')" class="tu3">以太网参数</h3>
			<ul class="ulmenu3">
				<li><a class="selected" href="#tab1" onclick="bullet('1008')">远程传输设置</a></li>
				<li><a href="#" onclick="bullet('1009')">本地网络配置</a></li>
			</ul>

            <h3 onclick="bullet('1010')" class="tu4">ZIGBEE 配置</h3>
			<ul class="ulmenu4">
			</ul>

            <h3 onclick="bullet('1011')" class="tu5">LORA配置</h3>
			<ul class="ulmenu5">
			</ul>

            <h3 onclick="bullet('1012')" class="tu6">GPRS 配置</h3>
			<ul class="ulmenu6">
				<li><a class="selected" href="#tab1" onclick="bullet('1012')">工作模式及中心配置</a></li>
				<li><a href="#" onclick="bullet('1013')">GPRS工作参数配置</a></li>
				<li><a href="#" onclick="bullet('1014')">无线参数</a></li>
			</ul>

            <h3 onclick="bullet('1015')" class="tu7">串口配置</h3>
			<ul class="ulmenu7">
			</ul>

            <h3 onclick="bullet('1016')" class="tu8">开关量输入设置</h3>
			<ul class="ulmenu8">
			</ul>

            <h3 onclick="bullet('1017')" class="tu9">开关量输出设置</h3>
			<ul class="ulmenu9">
			</ul>

            <h3 onclick="bullet('1018')" class="tu10">模拟量输入设置</h3>
			<ul class="ulmenub">
			</ul>
            <h3 onclick="bullet('1021')" class="tu11">变量管理</h3>
			<ul class="ulmenuc">
				<li><a class="selected" href="#tab1" onclick="bullet('1021')">采集变量</a></li>
				<li><a href="#" onclick="bullet('1022')">用户变量</a></li>
			</ul>
		</div>
		<div class="content">
			<div class="get-menu">
			</div>
			<div class="menu1 menu_tab">
				<div id="tab1" class="tab active">
					<h2>设备基本信息</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	设备ID：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_dev_id"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	硬件版本：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_dev_hw_ver"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	固件版本：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_dev_sw_ver"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	Zigbee 固件版本：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_dev_zigbee_ver"></div>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                产品序列号：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_dev_oem"></div>
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	MAC 地址：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_dev_mac"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	系统时间：
                            </li>
                            
                            <li class="detail_r">
                                <div id="rtu_dev_time"></div>
                            </li>
                            
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	运行时间：
                            </li>
                            <li class="detail_r">
                                <div id="rtu_run_time"></div>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li>
                                <div style="text-align:left;"><input type="button" onclick="devTimeSync();" value="系统时间对时" style="height:25px;width:100px;text-align:center !important"></div>
                            </li>

                        </ul>
                        
                    </div>
				</div>
				<div  id="tab2" class="tab">
					<h2>系统资源</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	CPU使用率：
                            </li>
                            <li class="detail_r">
                                <div id="sys_cpu_rate"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	内存占用：
                            </li>
                            <li class="detail_r">
                                <div id="sys_memory_use"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	内存剩余：
                            </li>
                            <li class="detail_r">
                                <div id="sys_memory_free"></div>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	存储ROM：
                            </li>
                            <li class="detail_r">
                                <div id="sys_store_rom"></div>
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	SD卡：
                            </li>
                            <li class="detail_r">
                                <div id="sys_store_sd"></div>
                            </li>
                        </ul>
                    </div>
				</div>

				<div  id="tab3" class="tab">
					<h2>已连接无线节点（zigbee）</h2>
                    <div class="innerbox">
                        <div id="div_root"></div>
                    </div>
				</div>


                <div id="tab1" class="tab">
                    <h2>网络信息</h2>
                    <div class="innerbox">

                        <table style="width:96%;" border="0">
                            <tr><td>
                                    <table style="width:90%">
                                        <tr>
                                            <td style="background-color:#8FC6FC" colspan="2">基本信息</td>
                                        </tr>
                                        <tr>
                                            <td style="text-align:right;width:50px;">DHCP开关：</td>
                                            <td style="text-align:left"><div id="sys_net_dhcp"></div></td>
                                        </tr>
                                        <tr>
                                            <td style="text-align:right;width:50px;">MAC 地址：</td>
                                            <td style="text-align:left"><div id="sys_net_mac"></div></td>
                                        </tr>
										
                                        <tr>
                                            <td style="text-align:right;width:50px;">地址：</td>
                                            <td style="text-align:left"><div id="sys_net_address"></div></td>
                                        </tr>


                                        <tr>
                                            <td style="text-align:right;width:50px;">子网掩码：</td>
                                            <td style="text-align:left"><div id="sys_net_mask"></div></td>
                                        </tr>


                                        <tr>
                                            <td style="text-align:right;width:50px;">网关：</td>
                                            <td style="text-align:left"><div id="sys_net_gate"></div></td>
                                        </tr>


                                        <tr>
                                            <td style="text-align:right;width:50px;">DNS 1：</td>
                                            <td style="text-align:left"><div id="sys_net_dns_1"></div></td>
                                        </tr>


                                        <tr>
                                            <td style="text-align:right;width:50px;">DNS 2：</td>
                                            <td style="text-align:left"><div id="sys_net_dns_2"></div></td>
                                        </tr>


                                        <tr>
                                            <td style="text-align:right;width:50px;">连接状态：</td>
                                            <td style="text-align:left"><div id="sys_net_link"></div></td>
                                        </tr>


                                    </table></td><td>
                                                     <table style="width:90%">
                                                         <tr>
                                                             <td style="background-color:#8FC6FC" colspan="2">GPRS网络信息</td>
                                                         </tr>
                                                         <tr>
                                                             <td style="text-align:right;width:50px;">运营商名称：</td>
                                                             <td style="text-align:left"><div id="gprs_network_name"></div></td>
                                                         </tr>

                                                         <tr>
                                                             <td style="text-align:right;width:50px;">网络注册状态：</td>
                                                             <td style="text-align:left"><div id="gprs_network_creg"></div></td>
                                                         </tr>


                                                         <tr>
                                                             <td style="text-align:right;width:50px;">信号质量：</td>
                                                             <td style="text-align:left"><div id="gprs_network_csq"></div></td>
                                                         </tr>


                                                         <tr>
                                                             <td style="text-align:right;width:50px;">小区信息：</td>
                                                             <td style="text-align:left"><div id="gprs_network_area"></div></td>
                                                         </tr>


                                                         <tr>
                                                             <td style="text-align:right;width:50px;">&nbsp;</td>
                                                             <td>&nbsp;</td>
                                                         </tr>


                                                         <tr>
                                                             <td style="text-align:right;width:50px;">&nbsp;</td>
                                                             <td>&nbsp;</td>
                                                         </tr>


                                                         <tr>
                                                             <td style="text-align:right;width:50px;">&nbsp;</td>
                                                             <td>&nbsp;</td>
                                                         </tr>


                                                     </table></td></tr>
                        </table>

                        <h2>以太网连接状态</h2>
                        <div id="div_network"></div>

                        <h2>GPRS连接状态</h2>
                        <div id="div_gprs"></div>


                    </div>
                </div>

			</div>
			<div class="menu2 menu_tab">
				<div id="tab-1" class="tab">
					<h2>基本设置</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	主机名：
                            </li>
                            <li class="detail_r">
                            	<input type="text" id="base_hostname">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	时间同步：
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="base_time" value="YES" id="base_time_yes" />&nbsp;是&nbsp;<input type="radio" name="base_time" value="NO" id="base_time_no" />&nbsp;否
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	候选NTP服务器1：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="base_ntp1">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	候选NTP服务器2：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="base_ntp2">
                            </li>
                        </ul>
                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_Time_Synchronization();" value="应用" class="width_45" class="text_left"></div>
                            </li>
                        </ul>
                    </div>
				</div>
				<div  id="tab-2" class="tab">
					<h2>日志</h2>
                    <div class="innerbox">
                        <table class="table_96">
                            <tr>
                                <td class="text_right width_100" class="text_right width_100">系统日志缓冲区大小：</td>
                                <td class="text-left"><input type="text" id="log_size" class="input_200"></td>
                                <td class="text_right width_100">日志记录等级：</td>
                                <td class="text-left">
                                    <select id="log_level" class="input_200">
                                        <option value="1">调试</option>
                                        <option value="2">信息</option>
                                        <option value="3">注意</option>
                                        <option value="4">警告</option>
                                        <option value="5">错误</option>
                                        <option value="6">致命错误</option>
                                        <option value="7">警戒</option>
                                        <option value="8">紧急</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right width_100">远程log服务器：</td>
                                <td class="text-left"><input type="text" id="log_remote" class="input_200"></td>
                                <td class="text_right width_100">Cron日志级别：</td>
                                <td class="text-left">
                                    <select id="log_cron" class="input_200">
                                        <option value="1">调试</option>
                                        <option value="2">警告</option>
                                        <option value="3">正常</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="text_right width_50">远程log服务器端口：</td>
                                <td class="text-left"><input type="text" id="log_port" class="input_200"></td>
                                <td colspan="2" class="text_right"><input type="button" onclick="Apply_Log();" value="应用" class="input_100_center width_45">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                            </tr>
                        </table>
                    </div>
                    <div class="innerbox">
                        <table class="table_96">
                            <tr>
                                <td class="text_right width_100">开始时间：</td>
                                <td class="text-left">
                                    <input name="date" type="text" id="start_time" onfocus="setday(this)" class="input_200" />
                                </td>
                                <td class="text_right width_100">结束时间：</td>
                                <td class="text-left">
                                    <input name="date" type="text" id="start_time" onfocus="setday(this)" class="input_200" />
                                </td>
                                <td class="text_center">
                                    <input type="button" onclick="" value="查询" class="input_100_center width_45">
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="innerbox">
                        <table class="table_96">
                            <tr>
                                <td>序号</td>
                                <td>发生时间</td>
                                <td>事件名称</td>
                                <td>记录等级</td>
                                <td>日志级别</td>
                                <td>详细信息</td>
                            </tr>
                            <tr>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                            </tr>
                            <tr>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                            </tr>
                            <tr>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                            </tr>
                            <tr>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                            </tr>
                            <tr>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                                <td>--</td>
                            </tr>
                        </table>
                    </div>
				</div>
				<div  id="tab-3" class="tab">
					<h2>管理权限</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	用户名
                            </li>
                            <li class="detail_r">
                                <input type="text" id="manage_user">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	密码
                            </li>
                            <li class="detail_r">
                                <input type="text" id="manage_pwd">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	SSH访问
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="manage_ssh" value="YES" id="manage_ssh_yes" />&nbsp;是&nbsp;<input type="radio" name="manage_ssh" value="NO" id="manage_ssh_no" />&nbsp;否
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	端口
                            </li>
                            <li class="detail_r">
                                <input type="text" id="manage_port">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	允许SSH密码验证
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="manage_ssh_cer" value="YES" id="manage_ssh_cer_yes" />&nbsp;是&nbsp;<input type="radio" name="manage_ssh_cer" value="NO" id="manage_ssh_cer_no" />&nbsp;否
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	时间设置
                            </li>
                            <li class="detail_r">
                                <input type="text" id="manage_time"><input type="button" value="对时" class="width_45 height_25" class="text_left">
                            </li>
                        </ul>
                        <ul>
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li>
                                <div class="text-right width_500"><input type="button" onclick="Apply_Jurisdiction();" value="应用" class="width_45 height_25 text_center" ></div>
                            </li>
                        </ul>
                        
                    </div>
				</div>

                <div id="tab1" class="tab">
                    <h2>备份/升级</h2>
                    <div class="innerbox">

                        <table class="table_96">
                            <tr><td class="x-large" colspan="2">&nbsp;&nbsp;恢复/备份</td></tr>
                            <tr><td colspan="2" class="text_left"><font color=" red">&nbsp;&nbsp;备份/恢复当前系统配置文件重置</font></td></tr>
                            <tr><td class="right_8f_15">下载备份：</td><td class="td_85_left" class="td_85_left">&nbsp;<input type="button" value="生成备份" class="h25_w90" /></td></tr>
                            <tr><td class="right_8f_15">恢复到出厂设置：</td><td class="td_85_left">&nbsp;<input type="button" value="执行复位" class="h25_w90" /></td></tr>
                            <tr><td colspan="2" class="text_left"><font color="red">&nbsp;&nbsp;上传兼容的固件以刷新当前系统</font></td></tr>
                            <tr>
                                <td class="right_8f_15">恢复配置：</td>
                                <td class="td_85_left">
                                    &nbsp;<input type="file" name="file" id="file_upload" class="h25_w300" />
                                    <div class="shangchuan">上传备份</div>
                                    <div id="progressbar"><div class="progress-label"></div></div>
                                </td>
                            </tr>
                        </table>
                        
                         
                        <br />

                        <table class="table_96">
                            <tr><td class="x-large" colspan="2">&nbsp;&nbsp;刷写新的固件</td></tr>
                            <tr><td colspan="2" class="text_left"><font color="red">&nbsp;&nbsp;上传备份存档以恢复配置</font></td></tr>

                            <tr><td class="right_8f_15">保留配置：</td><td class="td_85_left"><span class="check_01"><input type="checkbox" name="vehicle" value="是" checked="true" /><p>是</p></span></td></tr>
                            <tr>
                                <td class="right_8f_15">固件文件：</td>

                                <td class="td_85_left">
                                    <form method="post" action="file/update0" enctype="multipart/form-data">
                                        &nbsp;<input type="file" name="file" id="file_upload" class="h25_w300" />
                                        <!--&nbsp;<input type="submit" value="刷写固件" class="h25_w90" />-->
                                        <div class="shuaxie">刷写固件</div>
                                        <div id="progressbar2"><div class="progress-label"></div></div>
                                    </form>
                                </td>
                            </tr>
                        </table>

                    </div>
				</div>
			</div>
			
			<div class="menu3 menu_tab">
				<div id="tab-3-1" class="tab">
					<h2>远程传输设置</h2>
                    <div class="innerbox">
					<ul class="detail">
                        	<li class="detail_l">
                            	中心服务器选择：
                            </li>
                            <li class="detail_r">
                            	<select id="remote_group" onchange="Show_Remote_Transmission();">
                                  <option value="0">1组</option>
                                  <option value="1">2组</option>
                                  <option value="2">3组</option>
                                  <option value="3">4组</option>
                                </select>
                                <font color="red">请选择一组进行配置，注意保存</font>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                是否启用：
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="remote_group_is" value="YES" id="remote_group_is_yes" onclick="Enable_Remote_Transmission()" />&nbsp;是&nbsp;<input type="radio" name="remote_group_is" value="NO" id="remote_group_is_no" onclick="Enable_Remote_Transmission()" />&nbsp;否
                            </li>
                        </ul>

                        <ul class="detail">
                        	<li class="detail_l">
                            	以太网工作模式：
                            </li>
                            <li class="detail_r">
                                <select id="remote_working_type">
                                    <option value="0">TCP</option>
                                    <option value="1">UDP</option>
                                </select>
                                <select id="remote_working_cs">                                
                                    <OPTION VALUE="0" SELECTED>客户端
                                    <OPTION VALUE="1">服务端
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	协议：
                            </li>
                            <li class="detail_r">
                                <select id="remote_proto">
                                    <option value="0">Modbus TCP</option>
                                </select>
                                <select id="remote_proto_ms">         
                                    <OPTION VALUE="0" SELECTED>从机
                                    <OPTION VALUE="1">主机
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	域名地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="remote_ip">
                            </li>
                        </ul>
                        <ul class="detail">
                            <li class="detail_l">
                                域名端口：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="remote_port">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	上传间隔：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="remote_upload_interval">
                            </li>
                        </ul>

                        <ul class="detail">
                        	<li class="detail_l">
                            	是否启用心跳包：
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="remote_heartbeat" value="YES" id="remote_heartbeat_yes" />&nbsp;是&nbsp;<input type="radio" name="remote_heartbeat" value="NO" id="remote_heartbeat_no" />&nbsp;否
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_Remote_Transmission_downlist();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>
                        
                    </div>
				</div>
				<div  id="tab-3-2" class="tab">
                	<h2>本地网络配置</h2>
                    <div class="innerbox">

                        <ul class="detail">
                            <li class="detail_l">
                                设置模式：
                            </li>
                            <li class="detail_r">
                                <select id="local_dhcp" onchange="Show_Local_Setup();">
                                    <option value="0">手动模式</option>
                                    <option value="1">自动模式</option>
                                </select>
                            </li>
                        </ul>

                        <ul class="detail">
                        	<li class="detail_l">
                            	IP 地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="local_ip">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	子网掩码：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="local_mask">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	网关：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="local_gateway">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	DNS：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="local_dns">
                            </li>
                        </ul>
                        

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input class="time" type="button" onclick="Apply_Local_Network_Configuration();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>
                       
                        
                        
                    </div>
                </div>
			</div>
            
            
			<div class="menu4 menu_tab">
				<div  id="tab1" class="tab">
					<h2>ZIGBEE 配置</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	ZIGBEE工作模式：
                            </li>
                            <li class="detail_r">
                                <select id="ZIGBEE_Working_Mode">
                                    <option value="1">终端设备</option>
                                    <option value="2">路由器设备</option>
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	panID：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="ZIGBEE_panID">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	本地网络地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="ZIGBEE_Local_Address">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	本地MAC地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="ZIGBEE_Local_Mac">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	目的网络地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="ZIGBEE_Destination_Address">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	目的MAC地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="ZIGBEE_Destination_Mac">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	信道：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="ZIGBEE_Channel">
                            </li>
                        </ul>
                        <ul class="detail">用户变量
                        	<li class="detail_l">
                            	发送模式：
                            </li>
                            <li class="detail_r">
                                <select id="ZIGBEE_Transmission_Mode">
                                    <option value="1">单播</option>
                                    <option value="2">广播</option>

                                </select>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_ZIGBEE();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>
                        
                        
                    </div>
				</div>
			</div>
			<div class="menu5 menu_tab">
				<div  id="tab1" class="tab">
					<h2>LORA配置</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	载波频率：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="LORA_Carrier_Frequency">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	扩频因子：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="LORA_Spreading_Factor">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	工作模式：
                            </li>
                            <li class="detail_r">
                                <select id="LORA_Working_Mode">
                                    <option value="1">全速模式</option>
                                    <option value="2">低电流模</option>
                                    <option value="3">休眠模式</option>
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	扩频带宽：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="LORA_Spread">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	用户ID：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="LORA_USERID">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	网络ID：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="LORA_NETWORKID">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	发射功率：
                            </li>
                            <li class="detail_r">
                                <select id="LORA_Transmit_Power">
                                    <option value="1">1级</option>
                                    <option value="2">2级</option>
                                    <option value="3">3级</option>
                                    <option value="4">4级</option>
                                    <option value="5">5级</option>
                                    <option value="6">6级</option>
                                    <option value="7">7级</option>
                                    <option value="8">8级</option>
                                </select>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_LORA();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>

                    </div>
				</div>
				</div>
			<div class="menu6 menu_tab">
				<div id="tab-6-1" class="tab">
					<h2>GPRS 配置——工作模式及中心配置</h2>
                    <div class="innerbox">
					<ul class="detail">
                        	<li class="detail_l">
                            	中心服务器选择：
                            </li>
                            <li class="detail_r">
                                <select id="GPRS_group" onchange="Show_GPRS_Transmission()">
                                    <option value="0">1组</option>
                                    <option value="1">2组</option>
                                    <option value="2">3组</option>
                                    <option value="3">4组</option>
                                </select>
                                <font color="red">请选择一组进行配置，注意保存</font>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                是否启用：
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="GPRS_group_is" value="YES" id="GPRS_group_is_yes" onclick="Enable_GPRS_Transmission()" />&nbsp;是&nbsp;<input type="radio" name="GPRS_group_is" value="NO" id="GPRS_group_is_no" onclick="Enable_GPRS_Transmission()" />&nbsp;否
                            </li>
                        </ul>

                        <ul class="detail">
                        	<li class="detail_l">
                            	以太网工作模式：
                            </li>
                            <li class="detail_r">
                                <select id="GPRS_working_type">
                                    <option value="0">TCP</option>
                                </select>
                                <select id="GPRS_working_cs">                                
                                    <OPTION VALUE="0" SELECTED>客户端
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	协议：
                            </li>
                            <li class="detail_r">
                                <select id="GPRS_proto">
                                    <option value="0">Modbus TCP</option>
                                </select>
                                <select id="GPRS_proto_ms">         
                                    <OPTION VALUE="0" SELECTED>从机
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	域名地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="GPRS_peer_ip">
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                域名端口：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="GPRS_peer_port">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	上传间隔：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="GPRS_upload_interval">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                            <li class="detail_l">
                                是否启用心跳包：
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="GPRS_heartbeat" value="YES" id="GPRS_heartbeat_yes" />&nbsp;是&nbsp;<input type="radio" name="GPRS_heartbeat" value="NO" id="GPRS_heartbeat_no" />&nbsp;否
                            </li>
                        </ul>


                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_gprs_Transmission_downlist();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>
        </div>
                    
    </div>
    <div  id="tab-6-2" class="tab">
        
            <h2>GPRS 工作参数配置</h2>
            <div class="innerbox">
                <ul class="detail">
                    <li class="detail_l">
                        工作模式：
                    </li>
                    <li class="detail_r">
                        <select id="GPRS_Config_Mode">
                            <option value="0">全速模式</option>
                            <option value="1">低电流模</option>
                            <option value="2">休眠模式</option>

                        </select>
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        激活方式：
                    </li>
                    <li class="detail_r">
                        <select id="GPRS_Config_Activation">
                            <option value="0">自动</option>
                            <option value="1">按需</option>
                            <option value="2">手动</option>

                        </select>
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        调试等级：
                    </li>
                    <li class="detail_r">
                        <select id="GPRS_Config_Level">
                            <option value="0">0</option>
                            <option value="1">1</option>
                            <option value="2">2</option>

                        </select>
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        SIM卡号码（11位）：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Config_SIM">
                    </li>
                </ul>
                
                <ul class="detail">
                    <li class="detail_l">
                        数据帧时间（MS）：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Config_MS">
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        自定义注册包：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Config_Reg">
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        自定义心跳包：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Config_Jump">
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        重连次数：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Config_Time">
                    </li>
                </ul>


                <ul class="detail">
                    <li class="detail_l">
                        &nbsp;
                    </li>
                    <li class="detail_r">
                        <div class="text_right width_350"><input type="button" onclick="Apply_GPRS_Config();" value="应用" class="w45_left"></div>
                    </li>
                </ul>

            </div>
            
        </div>
        <div  id="tab-6-3" class="tab">
        
            <h2>无线参数</h2>
            <div class="innerbox">
                
                <ul class="detail">
                    <li class="detail_l">
                        无线网络APN：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Wireless_APN">
                    </li>
                </ul>
                
                <ul class="detail">
                    <li class="detail_l">
                        APN用户名：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Wireless_User">
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        APN密码：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Wireless_PWD">
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        APN拨号号码：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Wireless_NUM">
                    </li>
                </ul>
                <ul class="detail">
                    <li class="detail_l">
                        短信中心号码：
                    </li>
                    <li class="detail_r">
                        <input type="text" id="GPRS_Wireless_Center">
                    </li>
                </ul>


                <ul class="detail">
                    <li class="detail_l">
                        &nbsp;
                    </li>
                    <li class="detail_r">
                        <div class="text_right width_350"><input type="button" onclick="Apply_GPRS_Wireless();" value="应用" class="w45_left"></div>
                    </li>
                </ul>
        </div>
        
    </div>
			</div>
		   <div class="menu7 menu_tab">
				<div  id="tab1" class="tab">
					<h2>串口配置</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	选择串口：
                            </li>
                            <li class="detail_r">
                                <select id="Serial_Port_Select" onchange="Show_Serial_Port()">
                                    <option value="0">串口1</option>
                                    <option value="1">串口2</option>
                                    <option value="2">串口3</option>
                                    <option value="3">串口4</option>
                                </select>
                                <font color="red">请选择一组进行配置，注意保存</font>

                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                串口模式：
                            </li>
                            <li class="detail_r">
								<SELECT id="Serial_Port_Mode" onchange="">
                                    <OPTION VALUE="0" SELECTED>RS232
                                    <OPTION VALUE="1">RS485
                                </SELECT>
                                <div />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red">后期硬件系统自动检测RS485或RS232</font>
                            </li>
                            
                        </ul>
						
                        <ul class="detail">
                        	<li class="detail_l">
                            	协议配置：
                            </li>
                            <li class="detail_r">
                                <select id="Serial_Port_proto">
                                    <option value="0">Modbus RTU</option>
                                </select>
                                <select id="Serial_Port_proto_ms">
                                    <OPTION VALUE="0" SELECTED>从机
                                    <OPTION VALUE="1">主机
                                </select>    
                            </li>
                        </ul>
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	从机地址：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Serial_Port_ModbusAddr">
                            </li>
                        </ul>
                        
                        <ul class="detail">
                            <li class="detail_l">
                                串口波特率：
                            </li>
                            <li class="detail_r">
                                <select id="Serial_Port_Rate">
                                    <OPTION VALUE="2400">2400
                                    <OPTION VALUE="4800">4800
                                    <OPTION VALUE="9600">9600
                                    <OPTION VALUE="38400">38400
                                    <OPTION VALUE="57600">57600
                                    <OPTION VALUE="115200" SELECTED>115200
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	数据位：
                            </li>
                            <li class="detail_r">

                                <select id="Serial_Port_Data">
                                    <option value="81">8N1</option>
                                    <option value="82">8N2</option>
                                    <option value="91">9N1</option>
                                    <option value="92">9N2</option>
                                </select>
                            </li>
                        </ul>

                        <ul class="detail">
                        	<li class="detail_l">
                            	采集间隔（MS）：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Serial_Port_Interval">
                            </li>
                        </ul>
                       
                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_Serial_Port();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>

                </div>
                
                   
              
                 
                </div>
			</div>
			
			
             <div class="menu8 menu_tab">
				<div  id="tab1" class="tab">
					<h2>开关量输入设置</h2>
                    <div class="innerbox">
                        <table>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is1" value="" />&nbsp;是否启用</td>
                                <td class="width_80" class="width_80">通道1：</td>
                                <td class="width_80"><div id="switch_state1" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60" class="width_60"><input type="text" class="h25_w60" id="switch_interval1"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression1"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is2" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道2：</td>
                                <td class="width_80"><div id="switch_state2" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval2"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression2"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is3" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道3：</td>
                                <td class="width_80"><div id="switch_state3" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval3"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression3"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is4" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道4：</td>
                                <td class="width_80"><div id="switch_state4" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval4"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression4"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is5" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道5：</td>
                                <td class="width_80"><div id="switch_state5" class="width_80">【打开】</div></td>
                                <td style ="width:80px !important">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval5"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression5"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is6" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道6：</td>
                                <td class="width_80"><div id="switch_state6" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval6"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression6"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is7" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道7：</td>
                                <td class="width_80"><div id="switch_state7" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval7"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression7"></td>
                            </tr>
                            <tr>
                                <td><input name="road_turnno" type="checkbox" id="switch_is8" value="" />&nbsp;是否启用</td>
                                <td class="width_80">通道8：</td>
                                <td class="width_80"><div id="switch_state8" class="width_80">【打开】</div></td>
                                <td class="width_80">间隔：</td>
                                <td class="width_60"><input type="text"  class="h25_w60" id="switch_interval8"></td>
                                <td class="width_80">表达式：</td>
                                <td><input type="text" class="height_25" id="switch_expression8"></td>
                            </tr>
                        </table>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text-right width_500"><input type="button" onclick="Apply_Switch();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>
                        
                	</div>
				</div>
			</div>
             <div class="menu9 menu_tab">
				<div  id="tab1" class="tab">
					<h2>开关量输出设置</h2>
                    <div class="innerbox">
                        <ul class="detail">
                        	<li class="detail_l">
                            	继电器1
                            </li>
                            <li class="detail_r">
                            	<li class="detail_r">
                            	  <form>
                                    <div class="f_left_m_20">
                                      <p>
                                          <input type="button" id="Output_State1" class="w36_left" value="关" onclick="OutPutClick(1)"/>
                                      </p>
                                    </div>
                                  </form>
                                <div class="float_left">
                                <span>表达式</span>
                                    <input type="text" id="Output_Expression1">
                                </div>
                            	</li>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	继电器2
                            </li>
                            <li class="detail_r">
                            	<li class="detail_r">
                            	<form>
                                    <div class="f_left_m_20">
                                      <p>
                                          <input type="button" id="Output_State2" class="w36_left" value="关" onclick="OutPutClick(2)"/>
                                      </p>
                                    </div>
                                  </form>
                                <div class="float_left">
                                <span>表达式</span>
                                    <input type="text" id="Output_Expression2">
                                </div>
                            	</li>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	继电器3
                            </li>
                            <li class="detail_r">
                            	<li class="detail_r">
                            	<form>
                                    <div class="f_left_m_20">
                                      <p>
                                          <input type="button" id="Output_State3" class="w36_left" value="关" onclick="OutPutClick(3)"/>
                                      </p>
                                    </div>
                                  </form>
                                <div class="float_left">
                                <span>表达式</span>
                                    <input type="text" id="Output_Expression3">
                                </div>
                            	</li>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	继电器4
                            </li>
                            <li class="detail_r">
                            	<li class="detail_r">
                            	<form>
                                    <div class="f_left_m_20">
                                      <p>
                                          <input type="button" id="Output_State4" class="w36_left" value="关" onclick="OutPutClick(4)"/>
                                      </p>
                                    </div>
                                  </form>
                                <div class="float_left">
                                <span>表达式</span>
                                    <input type="text" id="Output_Expression4">
                                </div>
                            	</li>
                            </li>
                        </ul>
                         <ul class="detail">
                        	<li class="detail_l">
                            	TTL1
                            </li>
                            <li class="detail_r">
                            	<li class="detail_r">
                            	<form>
                                    <div class="f_left_m_20">
                                      <p>
                                          <input type="button" id="Output_State5" class="w36_left" value="低" onclick="OutPutClick(5)"/>
                                      </p>
                                    </div>
                                  </form>
                                <div class="float_left">
                                <span>表达式</span>
                                    <input type="text" id="Output_Expression5">
                                </div>
                            	</li>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	TTL2
                            </li>
                            <li class="detail_r">
                            	<li class="detail_r">
                            	<form>
                                    <div class="f_left_m_20">
                                      <p>
                                          <input type="button" id="Output_State6" class="w36_left" value="低" onclick="OutPutClick(6)"/>
                                      </p>
                                    </div>
                                  </form>
                                <div class="float_left">
                                <span>表达式</span>
                                    <input type="text" id="Output_Expression6">
                                </div>
                            	</li>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div style="margin-left:20px;" class="text-right width_500"><input type="button" onclick="Apply_Output();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>

                	</div>
				</div>
			</div>
            <div class="menub menu_tab">
				<div  id="tab1" class="tab">
					<h2>模拟量输入设置</h2>
                    <div class="innerbox">
                        
                        
                        <ul class="detail">
                        	<li class="detail_l">
                            	通道选择：
                            </li>
                            <li class="detail_r">
                            	<select id="Input_Select" onclick="Show_Input();">
                                  <option value ="0">1</option>
                                  <option value ="1">2</option>
                                  <option value ="2">3</option>
                                  <option value ="3">4</option>
                                  <option value ="4">5</option>
                                  <option value ="5">6</option>
                                  <option value ="6">7</option>
                                  <option value ="7">8</option>
                                </select>
                                <font color="red">请选择一组进行配置，注意保存</font>
                            </li>
                        </ul>


                        <ul class="detail">
                            <li class="detail_l">
                                是否启用：
                            </li>
                            <li>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="Input_Group_Is" value="YES" id="Input_Group_Is_yes" onclick="Enable_Input()" />&nbsp;是&nbsp;<input type="radio" name="Input_Group_Is" value="NO" id="Input_Group_Is_no" onclick="Enable_Input()" />&nbsp;否
                            </li>
                        </ul>

                        <ul class="detail">
                        	<li class="detail_l">
                            	采集间隔（MS）：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Interval">
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	数据格式：
                            </li>
                            <li class="detail_r">
                                <select id="Input_Format" onchange="Hide_Input()">
                                    <option value="0">工程量</option>
                                    <option value="1">补码</option>
                                    <option value="2">百分比(全量程范围)</option>
                                    <option value="3">仪表测量数据</option>
                                </select>
                            </li>
                        </ul>
                        <ul class="detail">
                        	<li class="detail_l">
                            	量程设置：
                            </li>
                            <li class="detail_r">
                                <select id="Input_Range">
                                    <option value="0">4-20 MA</option>
                                </select>
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                工程量实测值：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Range_Engineering">
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                电参数实测值：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Range_Electrical">
                            </li>
                        </ul>

                        <ul class="detail" id="Input_Show_Max" class="d_none">
                        	<li class="detail_l">
                            	最大量程：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Range_Max">
                            </li>
                        </ul>
                        <ul class="detail" id="Input_Show_Min" class="d_none">
                        	<li class="detail_l">
                            	最小量程：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Range_Min">
                            </li>
                        </ul>
                        <ul class="detail" id="Input_Show_Factor" class="d_none">
                        	<li class="detail_l">
                            	修正系数：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Correction_Factor">
                            </li>
                        </ul>
						
                        <ul class="detail">
                        	<li class="detail_l">
                            	表达式：
                            </li>
                            <li class="detail_r">
                                <input type="text" id="Input_Expression">
                            </li>
                        </ul>

                        <ul class="detail">
                            <li class="detail_l">
                                &nbsp;
                            </li>
                            <li class="detail_r">
                                <div class="text_right width_350"><input type="button" onclick="Apply_Input();" value="应用" class="w45_left"></div>
                            </li>
                        </ul>

               	    </div>
				</div>
			</div>
      
         
			<div class="menuc menu_tab">
				<div  id="tab1" class="tab">
					<h2>变量采集</h2>

                    <div class="innerbox">
                        <div><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red">下面显示当前选中的采集变量的详细信息：</font></div>
                        <table>
                            <tr>
                                <td class="right_8fc6">编号：</td><td><input type="text" readonly="readonly" id="var_ext_id" value="0" disabled="disabled" class="height_25" /></td>
                                <td class="right_8fc6">有效：</td><td><select id="var_ext_enable" class="h25_w100"><option value="0">无效</option><option value="1">有效</option></select></td>
                                <td class="right_8fc6">读写：</td><td><select class="h25_w100" id="var_ext_varrw"><option value="0">只读</option><option value="1">只写</option><option value="2">读写</option></select></td>
                                <td colspan="2"></td>
                            </tr>
                            <tr>
                                <td class="right_8fc6">映射地址：</td><td><input type="text" id="var_ext_addr" maxlength="6" value="1024" class="height_25" /></td>
                                <td colspan="6" class="text-left">&nbsp;<font color="red">RTU内部寄存器映射地址,范围1024-2048</font></td>
                            </tr>
                            <tr>
                                <td class="right_8fc6">变量名：</td>
                                <td><input type="text" value="TEST1" class="height_25" id="var_ext_name" maxlength="6"/></td>
                                <td class="right_8fc6">别名：</td>
                                <td><input type="text" value="T1" class="height_25" id="var_ext_alias" maxlength="4"/></td>
                                <td class="right_8fc6">数据类型：</td>
                                <td><select class="h25_w100" id="var_ext_vartype" onchange="onVarExtVartypeChange(this)">
                                    <OPTION VALUE="0">BIT
                                    <OPTION VALUE="1" SELECTED>INT8
                                    <OPTION VALUE="2">UINT8
                                    <OPTION VALUE="3">INT16
                                    <OPTION VALUE="4">UINT16
                                    <OPTION VALUE="5">INT32
                                    <OPTION VALUE="6">UINT32
                                    <OPTION VALUE="7">FLOAT
                                    <OPTION VALUE="8">DOUBLE
                                    <OPTION VALUE="9">ARRAY
                                </select></td>
                                <td class="right_8fc6">长度：</td>
                                <td><input type="text" value="4" id="var_ext_varsize" maxlength="1" disabled="true" class="height_25" /></td>
                            </tr>
                            <tr>
                                <td class="right_8fc6">驱动：</td>
                                <td><select class="h25_w100" id="var_ext_devtype"></select></td>
                                <td class="right_8fc6">更新时间：</td>
                                <td><input type="text" value="1000" class="height_25" id="var_ext_interval" maxlength="11"/></td>
                                <td colspan="4" class="text-left">ms&nbsp;
                            </tr>
                            <tr>
                                <td class="right_8fc6">从机地址：</td>
                                <td><input type="text" value="5" class="height_25" id="var_ext_slaveaddr" maxlength="4"/></td>
                                <td class="right_8fc6">从机寄存器：</td>
                                <td><input type="text" value="10" class="height_25" id="var_ext_extaddr" maxlength="4"/></td>
                                <td class="right_8fc6">偏移：</td>
                                <td><input type="text" value="0" class="height_25" id="var_ext_extaddrofs" maxlength="4"/></td>

                                <td colspan="4" class="text-left">&nbsp;<input type="button" value="应用" class="h25_w60" onclick="setVarExtInfo()" /></td>
                            </tr>
                        </table>
                    </div>

                    <div class="innerbox">

                        <div class="h400_ov">
                            <table id="rtu_var_ext_table">
                                <tr>
                                    <td class="back_8fc6">编号</td>
                                    <td class="back_8fc6">有效</td>
                                    <td class="back_8fc6">名称</td>
                                    <td class="back_8fc6">别名</td>
                                    <td class="back_8fc6">类型</td>
                                    <td class="back_8fc6">长度</td>
                                    <td class="back_8fc6">间隔</td>
                                    <td class="back_8fc6">数值</td>
                                    <td class="back_8fc6">驱动协议</td>
                                </tr>
                            </table>
                        </div>
                        
                    </div>
                </div>

                <div  id="tab1" class="tab">
					<h2>用户变量</h2>
                    <div class="innerbox">
                        <table class="w_960">
                            <tr>
                                <td class="right_8fc6">序号：</td>
                                <td colspan="3" class="text_left"><input id="user_defin_id" class="width_50 height_25" /></td>
                            </tr>

                            <tr>
                                <td class="right_8fc6">变量名：</td>
                                <td class="text_left"><input id="user_defin_name" class="width_50 height_25" /></td>
                                <td class="right_8fc6">数据类型：</td>
                                <td class="text_left"><input id="user_defin_type" class="width_50 height_25" /></td>
                            </tr>
                            <tr>
                                <td class="right_8fc6">别名：</td>
                                <td class="text_left"><input id="user_defin_rename" class="width_50 height_25" /></td>
                                <td class="right_8fc6">备注说明：</td>
                                <td class="text_left"><input id="user_defin_note" class="width_50 height_25" /></td>
                            </tr>

                            <tr>
                                <td colspan="4" class="text_right"><input value="保存" type="button" class="height_25 width_60" />&nbsp;<input value="删除" type="button" class="height_25 width_60" />&nbsp;</td>
                            </tr>

                        </table>
               	    </div>

                    <div class="innerbox">
                        <div id="div_userdefine">
                            <table class="table_96" >
                                <tr class="back_8fc6">
                                    <td>选择</td>
                                    <td>序号</td>
                                    <td>变量名</td>
                                    <td>数据类型</td>
                                    <td>别名</td>
                                    <td>表达式</td>
                                    <td>备注说明</td>
                                    <td>操作</td>
                                </tr>

                                <tr>
                                    <td><input type="checkbox" /></td>
                                    <td>001</td>
                                    <td>XXX</td>
                                    <td>XXX</td>
                                    <td>XXX</td>
                                    <td>XXX</td>
                                    <td>--</td>
                                    <td><input value="查看" type="button" class="height_25 width_60" /></td>
                                </tr>
                                <tr>
                                    <td><input type="checkbox" /></td>
                                    <td>001</td>
                                    <td>XXX</td>
                                    <td>XXX</td>
                                    <td>XXX</td>
                                    <td>XXX</td>
                                    <td>--</td>
                                    <td><input value="查看" type="button" class="height_25 width_60" /></td>
                                </tr>
                            </table>
                        </div>
                    </div>

				</div>
			</div>     		
		</div>

	</div>

    <div id="mainbox" class="d_none"> <div id="box0"></div><div id="box1">↓</div> <div id="items"> </div> </div>
    <div id="mainbox" class="d_none"> <div id="box00"></div><div id="box11">↓</div> <div id="itemss" > </div> </div>

    <div class="container">
    <div class="foot">
    	<span>Copyright © 2016.Company name All rights reserved.</span>
    </div>
    </div>
</body>
<script language="javascript" src="js/index_link.js" type="text/javascript"></script>
    <script type="text/javascript">
        function exit()
        {
            self.location = 'login.html';
        }
    </script>
    <script>
        $(function(){
            $("#container").height(document.body.clientHeight-45);
        })
</script>
<script type="text/javascript" src="js/pc.js"></script>
<script type="text/javascript">
    $(document).ready(function(e) {
        $('.lcs_check').lc_switch();
        // triggered each time a field changes status
        $('body').delegate('.lcs_check', 'lcs-statuschange', function() {
            var status = ($(this).is(':checked')) ? 'checked' : 'unchecked';
            //console.log('field changed status: '+ status );
        });
        $(function(){
            $("#container").height(window.screen.availHeight-226);
            $('.menu').height(window.screen.availHeight-30);
            $(".shangchuan").click(function(){
                $("#progressbar").css("display","block");
                $("#progressbar").css("position","absolute");
                $("#progressbar").css("width","400px");
                $("#progressbar").css("top","380px");
                $("#progressbar").css("left","890px");
                var progressbar = $( "#progressbar" ),
                progressLabel = $( ".progress-label" );

                progressbar.progressbar({
                value: 0,
                change: function() {
                    progressLabel.text( progressbar.progressbar( "value" ) + "%" );
                },
                complete: function() {
                    // progressLabel.text( "完成！" );
                    $("#progressbar").css("display","none");
                    location.reload(true);
                }
                });
            
                function progress() {
                var val = progressbar.progressbar( "value" ) || 0;
            
                progressbar.progressbar( "value", val + 1 );
            
                if ( val < 99 ) {
                    setTimeout( progress,10 );
                }
                }
                setTimeout( progress, 500 );
            });
        $(".shuaxie").click(function(){
            $("#progressbar2").css("display","block");
            $("#progressbar2").css("position","absolute");
            $("#progressbar2").css("width","400px");
            $("#progressbar2").css("top","584px");
            $("#progressbar2").css("left","890px");
            var progressbar = $( "#progressbar2" ),
            progressLabel = $( ".progress-label" );

            progressbar.progressbar({
            value: 0,
            change: function() {
                progressLabel.text( progressbar.progressbar( "value" ) + "%" );
            },
            complete: function() {
                // progressLabel.text( "完成！" );
                $("#progressbar2").css("display","none");
                location.reload(true);
            }
            });
        
            function progress() {
            var val = progressbar.progressbar( "value" ) || 0;
        
            progressbar.progressbar( "value", val + 1 );
        
                if ( val < 99 ) {
                    setTimeout( progress,10 );
                }
            }
            setTimeout( progress, 500 );
            })
        })
    });
</script> 
</html>